//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.ExamQueueDto;
//import java.io.Serializable;
//import com.rt.schedulebase.service.IExamQueueService;
//import com.rt.schedulebase.entity.ExamQueue;
//import com.rt.schedulebase.mapper.ExamQueueMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//public class ExamQueueServiceImpl extends ServiceImpl<ExamQueueMapper, ExamQueue> implements IExamQueueService
//{
//@Override
//    public boolean insertSelective(final ExamQueue examQueue) {
//        return this.retBool(Integer.valueOf(((ExamQueueMapper)this.baseMapper).insert(examQueue)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((ExamQueueMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final ExamQueue examQueue) {
//        return this.retBool(Integer.valueOf(((ExamQueueMapper)this.baseMapper).updateById(examQueue)));
//    }
//
//@Override
//    public ExamQueue selectByPrimaryKey(final String key) {
//        return (ExamQueue)((ExamQueueMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<ExamQueue> getList(final ExamQueueDto dto) {
//        final QueryWrapper<ExamQueue> qw = (QueryWrapper<ExamQueue>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("SICK_ID", dto.getSickId());
//        map.put("EXAM_NO", dto.getExamNo());
//        map.put("EXAM_CLASS", dto.getExamClass());
//        map.put("PATIENT_SOURCE", dto.getPatientSource());
//        qw.allEq((Map)map, false);
//        final List<ExamQueue> list = (List<ExamQueue>)((ExamQueueMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<ExamQueue> getListAll() {
//        return (List<ExamQueue>)((ExamQueueMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final ExamQueue examQueue) {
//        final UpdateWrapper<ExamQueue> uw = (UpdateWrapper<ExamQueue>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("EXAM_NO", examQueue.getExamNo());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((ExamQueueMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final ExamQueue examQueue) {
//        final UpdateWrapper<ExamQueue> uw = (UpdateWrapper<ExamQueue>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("EXAM_NO", examQueue.getExamNo());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((ExamQueueMapper)this.baseMapper).update(examQueue, (Wrapper)uw)));
//    }
//
//@Override
//    public ExamQueue getInfo(final ExamQueueDto dto) {
//        final QueryWrapper<ExamQueue> qw = (QueryWrapper<ExamQueue>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("EXAM_NO", dto.getExamNo());
//        qw.allEq((Map)map, false);
//        return (ExamQueue)((ExamQueueMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//}
